package com.wps.synergy.rpc.events
{
	import flash.events.Event;
	import flash.utils.Dictionary;
	
	public class JoinEvent extends Event
	{
		public static const JOIN_SELF:String = "joinSelfSuccess";//自己加入协作成功
		public static const JOIN_OTHER:String = "joinOther";//别人加入了协作
		public static const JOIN_FAIL:String = "joinFail";//自己加入协作失败
		
		public function JoinEvent(type:String, number:int, stateVec:Dictionary = null, id:String = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			this._number = number;
			this._stateVec = stateVec;
			this._id = id;
			super(type, bubbles, cancelable);
		}
		
		public function get Number():int
		{
			return this._number;
		}
		
		public function get StateVector():Dictionary
		{
			return this._stateVec;
		}
		
		public function get ID():String
		{
			return this._id;
		}
		
		private var _number:int;
		private var _stateVec:Dictionary = null;
		private var _id:String = null;
	}
}